package com.snut.tomorrowNews.dao.front;

import com.snut.tomorrowNews.model.Comment;
import com.snut.tomorrowNews.model.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CommentDao {

    void insertComment(Comment comment);

    List<Comment> getCommentByNewsId(@Param("newsId") Integer newsId);

    List<Comment> getAllComment();

    void deleteComment(@Param("id") Integer id);

    void passComment(@Param("id")Integer id);

    List<Comment> getUserComment(@Param("userId") Integer userId);
}
